import { DefaultLayout } from '@/layout'
import type { Route } from '@/layout/components'

export default {
  path: '/material',
  name: 'Material',
  component: DefaultLayout,
  meta: {
    title: '素材管理',
    roles: ['素材管理'],
    icon: 'menu-material',
    sort: 4,
    alwaysShow: true
  },
  redirect: '/material/videoManage',
  children: [
    {
      path: 'videoManage',
      name: 'VideoManage',
      component: () => import('@/views/material/videoManage'),
      meta: { title: '视频管理', roles: ['视频管理'], noCache: true }
    },
    {
      path: 'minAppHomeManage',
      name: 'MinAppHomeManage',
      component: () => import('@/views/material/minAppHomeManage'),
      meta: { title: '首页配置', roles: ['首页图片'] }
    }
  ]
} as Route
